package com.thesis.service.impl;
import com.thesis.dao.SysDictMapper;
import com.thesis.entity.SysDict;
import com.thesis.service.DictService;
import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Anvy at 2020/4/17.
 */
@Service("dictService")
public class DictServiceImpl implements DictService {

    @Autowired
    private SysDictMapper dictMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return dictMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SysDict record) {
        return dictMapper.insert(record);
    }

    @Override
    public int insertSelective(SysDict record) {
        return dictMapper.insertSelective(record);
    }

    @Override
    public SysDict selectByPrimaryKey(Long id) {
        return dictMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysDict record) {
        return dictMapper.updateByPrimaryKeySelective(record);
    }


    @Override
    public int updateByPrimaryKey(SysDict record) {
        return dictMapper.updateByPrimaryKey(record);
    }

    @Override
    public Page<SysDict> findPageList(SysDict record) {
        return dictMapper.findPageList(record);
    }

    @Override
    public Page<SysDict> findPageListByVague(SysDict queryParam, String vagueParam) {
        return dictMapper.findPageListByVague(queryParam,vagueParam);
    }

    @Override
    public Integer deleteBatchByIds(List<Integer> idList) {
        return dictMapper.deleteBatchByIds(idList);
    }
}
